package org.shj.thread.book2.chapter09;

public class Host {

	public Data request(final int count, final char c){
		System.out.println("    request(" + count + ", " + c + " begin");
		final FutureData future = new FutureData();
		
		new Thread(){
			public void run(){
				RealData real = new RealData(count, c);
				future.setRealData(real);
			}
		}.start();
		
		System.out.println("    request(" + count + ", " + c + " end");
		
		return future;
	}
}
